//
//  WHRProductActivityCell.m
//  仿造淘宝商品详情页
//
//  Created by 天质弘耕 on 2018/11/23.
//  Copyright © 2018 yixiang. All rights reserved.
//

#import "WHRProductActivityCell.h"


@implementation WHRProductActivityCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self creatView];
        [self setlayout];
    }
    return self;
}

- (void)creatView {
    
    
//    self.discountsLabel  = [[UILabel alloc]init];
//    self.discountsLabel.text = @"优惠";
//    self.discountsLabel.textColor = COLOR_DIV;
//    self.discountsLabel.font = [UIFont systemFontOfSize:14];
//    [self.contentView addSubview:self.discountsLabel];
//
//    self.fullSubtractLabel  = [[UILabel alloc]init];
//    self.fullSubtractLabel.text = @"满200减50";
//    self.fullSubtractLabel.textColor = COLOR_GREEN;
//    self.fullSubtractLabel.font = [UIFont systemFontOfSize:14];
//    [self.contentView addSubview:self.fullSubtractLabel];
//
//    self.integralLabel  = [[UILabel alloc]init];
//    self.integralLabel.text = @"购买可得44积分";
//    self.integralLabel .textColor = COLOR_GREEN;
//    self.integralLabel .font = [UIFont systemFontOfSize:14];
//    [self.contentView addSubview:self.integralLabel ];
    
    self.neckLabel  = [[UILabel alloc]init];
    self.neckLabel.text = @"领券";
    self.neckLabel.textColor = COLOR_GREEN;
    self.neckLabel.font = [UIFont systemFontOfSize:14];
    [self.contentView addSubview:self.neckLabel];
    
   

    
}

- (void)setlayout {
    
//    self.discountsLabel.sd_layout
//    .leftSpaceToView(self.contentView, 10)
//    .centerYEqualToView(self.contentView)
//    .widthIs(30)
//    .heightIs(20);
//
//    self.fullSubtractLabel.sd_layout
//    .leftSpaceToView(self.discountsLabel, 10)
//    .topEqualToView(self.discountsLabel)
//    .widthIs(120)
//    .heightIs(20);
//
//    self.integralLabel.sd_layout
//    .leftSpaceToView(self.fullSubtractLabel, 10)
//    .topEqualToView(self.discountsLabel)
//    .widthIs(120)
//    .heightIs(20);
    
    self.neckLabel.sd_layout
    .rightSpaceToView(self.contentView, 10)
    .topSpaceToView(self.contentView, 0)
    .widthIs(40)
    .heightIs(44);
    
    
 
    
}

@end
